<?php

namespace User\Model;
use Think\Model;

class LpicModel extends Model
{
    CONST STATUS_PENDING = 0;//--待审核--
    CONST STATUS_ACTIVE = 1;//--正常--
    CONST STATUS_REJECT = 2;//--审核未通过--
    CONST STATUS_DELETE = 9;//--删除--

    private static $a_status = [
        '0' => "待审核",
        '1' => "正常",
        '2' => "审核未通过",
    ];
    public static function getStatus($status = 'all')
    {
        if ($status === 'all') {
            return self::$a_status;
        }
        if (array_key_exists($status, self::$a_status)) {
            return self::$a_status[$status];
        }
        return "未知";
    }
}

?>